package com.avic.rong.search.api;

import android.support.v4.app.FragmentActivity;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Created by Chenjiaxin on 2019/7/24 14:10
 * E-Mail Address：16601203965@163.com
 */
public class SearchBuQuanApi extends BaseApi {

    private int types;
    private String keyword;

    public SearchBuQuanApi(FragmentActivity fragmentActivity, HttpOnNextListener listener, int types, String keyword) {
        super(fragmentActivity, listener);
        this.types = types;
        this.keyword = keyword;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService service = retrofit.create(HttpPostService.class);
        return service.searchAllBuQuan(types,keyword);
    }

}
